const express = require('express')
const router = express.Router()
const userController = require('../controllers/userController')

router.get('/user',userController.getUserList)
router.post('/login',userController.userLogin)
router.get('/user/search',userController.searchUser)
router.post('/user',userController.addUser)
router.delete('/user',userController.delUser)
router.put('/user',userController.updataUser)

module.exports = router